package com.chalk.model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.math.BigDecimal;

import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author glq
 * @since 2020-12-24
 */

@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_ticket")
@ApiModel(value="Ticket对象", description="")
public class Ticket implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "票id")
    @TableId(value = "ticket_id", type = IdType.AUTO)
    @JsonProperty("ticketId")
    private Integer ticketId;

    @ApiModelProperty(value = "票名称")
    @JsonProperty("ticketName")
    private String ticketName;

    @ApiModelProperty(value = "票价格")
    @JsonProperty("ticketPrice")
    private BigDecimal ticketPrice;

    @ApiModelProperty(value = "票库存")
    @JsonProperty("ticketStock")
    private Integer ticketStock;

    @ApiModelProperty(value = "票类型")
    @JsonProperty("ticketTypeId")
    private Integer ticketTypeId;

    @ApiModelProperty(value = "票描述")
    @JsonProperty("ticketDesc")
    private String ticketDesc;

    @ApiModelProperty(value = "0未删除1已删除")
    @JsonProperty("isDelete")
    private Integer isDelete;

    @ApiModelProperty(value = "创建时间")
    @JsonProperty("createTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    @JsonProperty("updateTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "场馆id")
    @JsonProperty("venueId")
    private Integer venueId;

    @ApiModelProperty(value = "0 未上架 1已上架")
    @JsonProperty("ticketStatus")
    private Integer ticketStatus;


}
